import request from '@/utils/request'


// 查询智库
export function wisdomlist(query) {
    return request({
        url: '/website/tank/list',
        method: 'get',
        params: query
    })
}

// 查询视频
export function videolist(query) {
    return request({
        url: '/website/video/list',
        method: 'get',
        params: query
    })
}

// 查询投资
export function infolist(query) {
    return request({
        url: '/website/info/list',
        method: 'get',
        params: query
    })
}

// 查询展会
export function expolist(query) {
    return request({
        url: '/website/expo/list',
        method: 'get',
        params: query
    })
}

//新增智库
export function addwisdom(data) {
    return request({
        url: '/website/tank/add',
        method: 'post',
        data
    })
}

//新增视频
export function addvideo(data) {
    return request({
        url: '/website/video/add',
        method: 'post',
        data
    })
}

//新增
export function addinfo(data) {
    return request({
        url: '/website/info/add',
        method: 'post',
        data
    })
}

//新增展会
export function addexpo(data) {
    return request({
        url: '/website/expo/add',
        method: 'post',
        data
    })
}

//修改
export function editwisdom(data) {
    return request({
        url: '/website/tank/update',
        method: 'post',
        data
    })
}

//修改视频
export function editvideo(data) {
    return request({
        url: '/website/video/update',
        method: 'post',
        data
    })
}

//修改
export function editinfo(data) {
    return request({
        url: '/website/info/update',
        method: 'put',
        data
    })
}

//修改展会
export function editexpo(data) {
    return request({
        url: '/website/expo/update',
        method: 'post',
        data
    })
}


//删除智库
export function delwisdom(data) {
    return request({
        url: '/website/tank/delete/' + data,
        method: 'delete',
    })
}

//删除视频
export function delvideo(data) {
    return request({
        url: '/website/video/delete/'+ data,
        method: 'delete',
    })
}

//删除
export function delinfo(data) {
    return request({
        url: '/website/info/delete/'+ data,
        method: 'delete',
    })
}

//删除展会
export function delexpo(data) {
    return request({
        url: '/website/expo/delete/'+ data,
        method: 'delete',
    })
}